import request from '@/utils/request'

// 查询放款记录列表
export function listDealFinancingLending(query) {
  return request({
    url: '/financingLending/dealFinancingLending/list',
    method: 'get',
    params: query
  })
}

// 查询放款记录详细
export function getDealFinancingLending(id) {
  return request({
    url: '/financingLending/dealFinancingLending/' + id,
    method: 'get'
  })
}

// 保存放款记录
export function saveDealFinancingLending(data) {
  return request({
    url: '/financingLending/dealFinancingLending/save',
    method: 'post',
    data: data
  })
}

// 删除放款记录
export function delDealFinancingLending(id) {
  return request({
    url: '/financingLending/dealFinancingLending/' + id,
    method: 'delete'
  })
}

// 导出放款记录
export function exportDealFinancingLending(query) {
  return request({
    url: '/financingLending/dealFinancingLending/export',
    method: 'get',
    params: query
  })
}
